<?php
	$arrCompanies = $_SESSION["login"]->getCompanies();
	foreach ($arrCompanies as $company) {
		echo '
		<script>
			$(document).ready(function () {
				$("#CInfo'.$company->getId().'").slideToggle(1600);
				$("#CInfoTrigger'.$company->getId().'").click(function () {
					$("#CInfo'.$company->getId().'").slideToggle(1500);
				});
			});
		</script>
		<div class="registration">

			<table class="profile"  id="CInfoTrigger'.$company->getId().'" >
				<tr >
					<th colspan="3">
						Информация за фирма "' . $company->getName() . '"
					</th>
				</tr>
			</table>
			<form action="?page=profile" method="post" class="registrationForm" class="cmxform">
			<table width="760" id="CInfo'.$company->getId().'" style="display: block;">
				<tr>
					<td width="110px">
						* Име :
					</td>
					<td>
						<input type="text" name="companyName" id="companyName" maxlength="25" value="' . $company->getName() . '"/>
						<div id="companyName" class="error"></div>
					</td>
				</tr>
				<tr>
					<td>
						* Адрес :
					</td>
					<td>
						<input type="text" name="companyAddress" id="companyAddress" maxlength="100"  value="' . $company->getAddress() . '"/>
					</td>
				</tr>

				<tr>
					<td>
						* МОЛ :
					</td>
					<td>
						<input type="text" name="respOfficial" id="respOfficial" maxlength="50"  value="' . $company->getRespOfficial() . '"/>
					</td>
				</tr>
				<tr>
					<td>
						<input type="submit" name="companies" value="Промени" id="companies" />
					</td>
					<td>
						<input type="submit" name="companies" value="Изтрии" id="personal"/>
					</td>
				</tr>
			</table>
		</form>
	</div>';

	}
?>